<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form class="layui-form" lay-filter="userForm" id="chongzhiform" action="" style="padding:15px 10px;">
    <input type="hidden" name="cardMemberId">
    <input type="hidden" name="cardTranType" id="cardTranType">
    <input type="hidden" name="currentBalance" >

    <div class="layui-form-item">
        <label class="layui-form-label">卡号：</label>
        <div class="layui-input-block">
            <input type="text" name="cardMemberId" disabled="" required  lay-verify="required" autocomplete="off" class="layui-input  layui-disabled">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">余额：</label>
        <div class="layui-input-block">
            <input type="text" name="currentBalance" id="currentBalance" disabled="" required  lay-verify="required" autocomplete="off" class="layui-input layui-disabled">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态：</label>
        <div class="layui-input-block">
            <input type="text" name="state" id="state" value="正在查询"  autocomplete="off" class="layui-input layui-disabled">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">充值金额：</label>
        <div class="layui-input-block">
            <input type="text" name="chongzhi" id="chongzhi" required  lay-verify="required" placeholder="请输入充值金额" autocomplete="off" class="layui-input">
        </div>
    </div>


</form>

<script>
    layui.form.render();


   setTimeout(function () {
       if ($("#cardTranType").val() == 0){
           $("#state").val("冻结")
       }else{
           $("#state").val("正常")
       }
   },1000)

</script>
</body>
</html>
